package com.lv.LvPercentage.dao;


import com.aqgj.util.BaseDaoImpl;
import com.lv.LvPercentage.bean.LvPercentage;
import org.springframework.stereotype.Repository;


@Repository("LvPercentageDao")
public class LvPercentageDao extends BaseDaoImpl<LvPercentage> {

    public void save(LvPercentage lvPercentage){
        if(lvPercentage.getId()!=null&&!"".equals(lvPercentage.getId())){
            this.currentSession().merge(lvPercentage);
        }else{
            this.currentSession().save(lvPercentage);
        }
    }
}